package com.dongdong.bookstore.module.ums.viewmodel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author chiangkai
 * @date 2021-10-29
 * @email chiangkk@163.com
 */
@ApiModel(value = "resource param 对象", description = "资源数据传输对象")
@Data
public class ResourceParam {
    @NotEmpty(message = "资源名称不能为空")
    @ApiModelProperty(value = "资源名称 资源名称")
    private String name;

    @NotEmpty(message = "资源路径不能为空")
    @ApiModelProperty(value = "资源路径 资源路径")
    private String url;

    @ApiModelProperty(value = "资源描述 资源描述")
    private String description;

    @NotEmpty(message = "资源分类不能为空")
    @ApiModelProperty(value = "资源分类ID 资源分类ID")
    private Long categoryId;
}
